require.config({
               baseUrl:"../",
               paths:{
               bsl:'bsl',
               
               }
               });
require(['bsl'],function(bsl){
        document.addEventListener('deviceready', onDeviceready, false);
        function onDeviceready(){
        
        alert("share");
        function shareToSina() {
        alert("shareToSina");
        bsl.share.shareToSina(function(){
                              },function(err){callback('nothing');},{
                              title:"shareToSina",
                              image:"http://wenwen.soso.com/p/20100523/20100523132709-1324513958.jpg",
                              link:"http://v.youku.com/v_show/id_XNTUxNDY1NDY4.html"
                              });
//        window.plugins.share.shareToSina(function(){
//                             },function(err){callback('nothing');},{
//                             title:"shareToSina",
//                             image:"http://wenwen.soso.com/p/20100523/20100523132709-1324513958.jpg",
//                             link:"http://v.youku.com/v_show/id_XNTUxNDY1NDY4.html"
//                             });
        
        }
        function shareToWeixinFavorite() {
        alert("shareToWeixinFavorite");
        window.plugins.share.shareToWeixinFavorite(function(){
                             },function(err){callback('nothing');},{
                             title:"shareToSina",
                             image:"http://wenwen.soso.com/p/20100523/20100523132709-1324513958.jpg",
                             link:"http://v.youku.com/v_show/id_XNTUxNDY1NDY4.html"
                             });
        
        }
        function shareToWeixinSession() {
        alert("shareToWeixinSession");
        window.plugins.share.shareToWeixinSession(function(){
                             },function(err){callback('nothing');},{
                             title:"shareToSina",
                             image:"http://wenwen.soso.com/p/20100523/20100523132709-1324513958.jpg",
                             link:"http://v.youku.com/v_show/id_XNTUxNDY1NDY4.html"
                             });
        
        }
        function shareToWeixinTimeline() {
        alert("shareToWeixinTimeline");
        window.plugins.share.shareToWeixinTimeline(function(){
                             },function(err){callback('nothing');},{
                             title:"shareToSina",
                             image:"http://wenwen.soso.com/p/20100523/20100523132709-1324513958.jpg",
                             link:"http://v.youku.com/v_show/id_XNTUxNDY1NDY4.html"
                             });
        
        }
        
        document.getElementById("shareToSina").addEventListener("click",shareToSina,false);
        document.getElementById("shareToWeixinFavorite").addEventListener("click",shareToWeixinFavorite,false);
        document.getElementById("shareToWeixinSession").addEventListener("click",shareToWeixinSession,false);
        document.getElementById("shareToWeixinTimeline").addEventListener("click",shareToWeixinTimeline,false);
        
        }
        })